package com.example.clothingmanager.bean;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Huangyt
 * @version 1.0
 * @date 2020/5/7 16:15
 */
@Entity
@Table(name = "tb_clothes")
public class Clothes implements Serializable {
    @Id
    private String citem;
    private String cname;
    private String clrnum;
    private int size;
    private String fabric;
    private double out_price;
    private double sell_price;
    private String material;
    @Transient
    private int stock;

    public String getCitem() {
        return citem;
    }

    public void setCitem(String citem) {
        this.citem = citem;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getClrnum() {
        return clrnum;
    }

    public void setClrnum(String clrnum) {
        this.clrnum = clrnum;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getFabric() {
        return fabric;
    }

    public void setFabric(String fabric) {
        this.fabric = fabric;
    }

    public double getOut_price() {
        return out_price;
    }

    public void setOut_price(double out_price) {
        this.out_price = out_price;
    }

    public double getSell_price() {
        return sell_price;
    }

    public void setSell_price(double sell_price) {
        this.sell_price = sell_price;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return "Clothes{" +
                "citem='" + citem + '\'' +
                ", cname='" + cname + '\'' +
                ", clrnum='" + clrnum + '\'' +
                ", size=" + size +
                ", fabric='" + fabric + '\'' +
                ", out_price=" + out_price +
                ", sell_price=" + sell_price +
                ", material='" + material + '\'' +
                ", stock=" + stock +
                '}';
    }
}
